package com.wugh.fast.kernel.core.props;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 说明:
 *
 * @author wugh
 * @date 2019-01-26 11:18
 */
@Data
@ConfigurationProperties(prefix = SecurityProperties.PROPERTY_PREFIX)
public class SecurityProperties {
    public static final String PROPERTY_PREFIX = FastProperties.PROPERTY_PREFIX + ".security";
    /**
     * 登录页面
     */
    private String signInUrl;
    /**
     * 注册页面
     */
    private String signUpUrl;
    /**
     * 登录处理的地址
     */
    private String loginProcessingUrl;
    /**
     * 退出登录url
     */
    private String logoutUrl;
    /**
     * 社交安全配置
     */
    private SocialSecurityProperties social;
    /**
     * oauth2登录配置
     */
    private OAuth2SecurityProperties oauth2;

    public SecurityProperties() {
        this.social = new SocialSecurityProperties();
        this.oauth2 = new OAuth2SecurityProperties();
    }
}
